Skip to content

Conversation

@cte
Copy link
Collaborator

@cte cte commented Mar 10, 2025

Context

Our benchmark harness (and e2e tests) use this exported API to understand how to interact with the extension. We weren't fully exporting the ClineMessage type, which made it challenging to implement benchmark runs. This expands the types we export, and renames the API for consistency.

Implementation

Screenshots

before after

How to Test

Get in Touch


Important

Renames ClineAPI to RooCodeAPI, updates related types and references, and improves type exports for better consistency and clarity.

  • Renaming:
    • Rename ClineAPI to RooCodeAPI in e2e/src/suite/index.ts, src/exports/roo-code.d.ts, and src/activate/createRooCodeAPI.ts.
    • Rename cline.d.ts to roo-code.d.ts.
  • Type Exports:
    • Fully export ClineMessage, ClineAsk, and ClineSay types in roo-code.d.ts and ExtensionMessage.ts.
  • File Changes:
    • Rename src/exports/index.ts to src/activate/createRooCodeAPI.ts.
    • Update .eslintrc.json to ignore roo-code.d.ts.
    • Update README.md to reflect new API name and usage instructions.

This description was created by Ellipsis for f8a592a. It will automatically update as commits are pushed.

@changeset-bot
Copy link

changeset-bot bot commented Mar 10, 2025

⚠️ No Changeset found

Latest commit: 90a607f

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. enhancement New feature or request labels Mar 10, 2025
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This probably shouldn't live under src/exports since we should only be exporting type definitions (i.e. the RooCodeAPI interface).

Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
@hannesrudolph hannesrudolph moved this from New to PR [Greenlit] in Roo Code Roadmap Mar 10, 2025
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Mar 11, 2025
@cte cte merged commit edb53bf into main Mar 11, 2025
9 checks passed
@cte cte deleted the cte/roo-code-api branch March 11, 2025 03:45
@github-project-automation github-project-automation bot moved this from PR [Greenlit] to Done in Roo Code Roadmap Mar 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request lgtm This PR has been approved by a maintainer size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants